package com.dy.lock.screen.dao.impl;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.dy.lock.screen.dao.AdvertDao;
import com.dy.lock.screen.pojo.AdvertInfo;

@Repository("advertDao")
public class AdvertDaoImpl extends BaseDaoImpl<AdvertInfo, String> implements
		AdvertDao {

	@Override
	public String getQueryNamespace() {
		return "mybatis.xml.AdvertMapper";
	}

	@Override
	public List<AdvertInfo> queryByAdIds(Map<String, Object> map) {
		List<AdvertInfo> list = this.getSqlSession().selectList(
				getQueryNamespace() + ".queryByAdIds", map);
		return list;
	}

	@Override
	public List<AdvertInfo> queryAll(Map<String, Object> map) {
		List<AdvertInfo> list = this.getSqlSession().selectList(
				getQueryNamespace() + ".queryAll", map);
		return list;
	}

	@Override
	public List<String> queryWillDeleteId(Map<String, Object> map) {
		List<String> list = this.getSqlSession().selectList(
				getQueryNamespace() + ".queryWillDeleteId", map);
		return list;
	}

}
